<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/24
 * Time: 11:05
 */
class Model_Shop extends PhalApi_Model_NotORM{
  protected function getTableName($id){
    return 't_shop';    //商户表
  }
  /*
   * 根据shopid获取shop记录
   */
  public  function appointShop($shopid){
    return $this->getORM()->select('*')->where('shopid',$shopid)->where('isuse',1)->fetch();
  }
  /*
   * 获取所有有效的shopid
   */
  public function getShopId(){
    return $this->getORM()->select('shopid')->where('isuse',1)->fetchAll();
  }


}